<div style="clear: both; height: 5px;"></div>
<div id="divFinishIntro" class="wrap-chung">
	<div class="dadau">
		<div class="bordertop3"></div>
		<div class="title3">CÁC PHIÊN ĐÃ ĐẤU</div>
		<div class="subcontent">
        <?php
								
								$auction_view = @mysql_query ( "select * from auction_view where  end_time <NOW()" );
								if (! $auction_view) {
									die ( 'errors' );
								}
								
								while ( $result = mysql_fetch_assoc ( $auction_view ) ) {
									
									?>
			<div class="spdangdau" ref='bid-<?php echo $result['auctionID'] ;?>'>
				<div class="ctspdangdau">
					<p class="title">
						<a id="" href=""><?php echo $result['name']?></a>
					</p>
					<br> <a id="" href="chi_tiet_san_pham?id=<?php echo $result['auctionID']?>"><img id="" class="img-home"
						src="../uploads/ProductUpload/<?php echo $result['image']; ?>" /></a>
					<p class="giaTT">
						Giá thị trường: <span id=""><?php echo number_format((int)$result['price'], 0, '.', ',');?> đ</span>
					</p>
					<p class="close">Đã đóng</p>
					<p class="gia">
						<span id=""><?php echo number_format((int)$result['auction_price'], 0, '.', ',');?> đ</span>
					</p>
					<p class="nguoidau">
						<span id=""><?php echo $result['current_user_bid']?></span>
					</p>
					<p class="bt"></p>
				</div>
				<div class="footersp">
					<span id="" class="buocgia"><?php echo (int)$result['price_per_bid']; ?> đ</span>
					<div class="dtien">
						<div class="img-tien">
							<img id="" src="../images/img-coin2.png" />
						</div>
						<div class="tien">
							<span id="">x50</span>
						</div>
					</div>
				</div>
			</div>
		
		
		
		<?php }?></div>
	</div>
</div>
